//
//  ExpenseViewController.h
//  iExpense
//
//  Created by WU, Zhenyu on 7/1/09.
//  Copyright 2009 National Instruments. All rights reserved.
//

#import <UIKit/UIKit.h>

@class ExpenseEditViewController;
@class iExpenseAppDelegate;
@class Setting;

@interface ExpenseViewController : UIViewController <UITableViewDelegate,UITableViewDataSource, NSFetchedResultsControllerDelegate> {
	IBOutlet UITableView			*listTableView;
	
	NSFetchedResultsController		*fetchedResultsController;
	NSManagedObjectContext			*managedObjectContext;	    
    NSManagedObjectContext			*addingManagedObjectContext;


}

@property (retain, nonatomic) NSFetchedResultsController	*fetchedResultsController;
@property (retain, nonatomic) NSManagedObjectContext		*managedObjectContext;
@property (retain, nonatomic) NSManagedObjectContext		*addingManagedObjectContext;


@property (retain, nonatomic) UITableView					*listTableView;
-(void) addExpense;
-(void) configureCell:(UITableViewCell *)cell atIndexPath:(NSIndexPath *)indexPath;


@end
